<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

// ----------------------后台----------------------
// 登录控制器
Route::get('login','admin/login/index');
Route::post('login','admin/login/login');

// index控制器
Route::resource('index','admin/index');
// informations控制器
Route::resource('informations','admin/informations');
Route::post('sort','admin/informations/sort');
// cate控制器
Route::resource('cate','admin/cate');

// conf控制器
Route::resource('conf','admin/conf');

// admin控制器
Route::resource('admin','admin/admin');
Route::get('switch/:id','admin/admin/switchStatus');
Route::get('logout','admin/admin/logout');
Route::get('noauth','admin/admin/noauthorized');

// auth_rule控制器
Route::resource('auth_rule','admin/auth_rule');

// auth_group控制器
Route::resource('auth_group','admin/auth_group');
Route::get('getRules','admin/auth_group/getRules');

// repertory控制器
Route::resource('repertory','admin/repertory');

// inquiry控制器
Route::resource('inquiry','admin/inquiry');

// poundage控制器
Route::resource('poundage','admin/poundage');


// ----------------------前台----------------------
//前台登录
Route::get('homelogin','index/login/index');
//前台登录验证方法1
Route::get('loginstart/:t', 'index/login/start');

//前台登录验证方法2
Route::post('loginverify', 'index/login/verify');

//前台注册
Route::get('register','index/register/index');
Route::get('telyzm/:t','index/register/send');

// personal控制器
Route::resource('personal','index/personal');

Route::get('telconfirm', 'index/register/telconfirm');

// 前台首页
Route::get('homeIndex', 'index/index/index');

// 前台询价控制器
Route::resource('homeInquiry', 'index/inquiry');
Route::get('messages', 'index/inquiry/messages');

return [

];
